package com.xyq.system.service.exam;

import com.xyq.common.core.domain.Result;
import com.xyq.system.domain.exam.dto.*;
import com.xyq.system.domain.exam.vo.ExamVO;

import java.util.List;

public interface ExamService {
    List<ExamVO> list(ExamDTO examDTO);

    Long add(ExamAddDTO examAddDTO);

    boolean addQuestion(ExamQuestionAddDTO examQuestionAddDTO);


    Result getExamDetailById(Long examId);

    int editExam(ExamEditDTO examEditDTO);

    int deleteExam(Long examId);

    int deleteExamQuestion(ExamQuestionDeleteDTO examQuestionDeleteDTO);

    int publishExam(Long examId);

    int cancelPublishExam(Long examId);
}
